package marina;

public class J12Account {
//Account 클래스 만들기
	public static void main(String[] args) {
		Account test1 = new Account();
		test1.aid = 1122;
		test1.balance = 20000;
		test1.dateCreated = "2014/03/24";
		test1.interestRate = 4.5;
		test1.deposit = 3000;
		test1.withDraw = 2500;
		
		System.out.println(test1.aid);
		System.out.println(test1.balance);
		System.out.println(test1.dateCreated);
		System.out.println(test1.interestRate);
		System.out.println(test1.deposit);
		System.out.println(test1.withDraw);
		System.out.println(test1.getMonthlyInterestRate());
		System.out.println(test1.withDraw());
		System.out.println(test1.deposit());
	}

}

class Account {
	int aid = 0;
	int balance = 0;
	double interestRate = 0;
	String dateCreated;
	int withDraw = 0;
	int deposit = 0;
	
	public double getMonthlyInterestRate() {
		return interestRate/12;
	}
	
	public int withDraw() {
		return balance - withDraw;
	}
	
	public int deposit() {
		return balance + deposit;
	}
}
